#include "calc.h"

int main()
{
    sptr<Adder> adder = new Adder();
    sptr<Calc> calc = new Calc(adder);

    printf("%d\n", calc->Parse("1+2+3"));
    printf("%d\n", calc->Parse("123123"));
    printf("%d\n", calc->Parse("1 + 123"));
    printf("%d\n", calc->Parse("1134ynasd+812349"));
    printf("%d\n", calc->Parse("1134ynasd+x12349"));
    printf("%d\n", calc->Parse("1 + 123"));
    return 0;
}
